import http from "@/utils/http2.js";
//添加店铺
async function addShop(data) {
  let res = http.post("auction-user/api/shop/add", data);
  return res;
}
//查询店铺
async function getShopList(data) {
  let res = http.post("auction-user/api/shop/query", data);
  return res;
}
//删除
async function deleteShop(data) {
  let res = http.delete("auction-user/api/shop/delete", data);
  return res;
}
//修改店铺状态
async function updateShopStatus(data) {
  let res = await http.put("auction-user/api/shop/update/status", data);
  return res;
}

export { addShop, getShopList, deleteShop, updateShopStatus };
